﻿using PowerHub.MES.DTO.Crew.QueryDto;
using PowerHub.MES.DTO.ProductPlanning.QueryDTO;
using PowerHub.MES.Entities.Crew;
using PowerHub.MES.Entities.ProductPlanning;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IRepository.IProductPlanning
{

    /// <summary>
    /// 产品数据接口层
    /// </summary>
    public interface IProductPlanning_ProductBillRepository
    {
        /// <summary>
        /// 获取产品列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<ProductPlanning_ProductBill>>> GetProductPlanning_ProductBillPageListAsync(QueryProductPlanning_ProductBillDTO query);

        /// <summary>
        /// 添加产品
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateProductPlanning_ProductBillAsync(ProductPlanning_ProductBill query);

        /// <summary>
        /// 批量删除产品
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionProductPlanning_ProductBillAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateProductPlanning_ProductBillAsync(ProductPlanning_ProductBill query);


        /// <summary>
        ///根据产品id获取产品
        /// </summary>
        /// <returns></returns>
        /// <exception cref="Exception"></exception>
        public  Task<ProductPlanning_ProductBill> GetProductPlanning_ProductBillByIdListAsync(QueryProductPlanning_ProductBillDTO productBillId);
    }
}
